<div class="ibox">
	<div class="ibox-content">
		<form class="form-horizontal">
			<div class="form-group">
				<label for="namebasic" class="col-md-2 control-label">${_res["emailMessage.emailTitle"]}：</label>
				<div class="col-md-8">
					<p class="form-control-static">${emailMessage.title!}</p>
				</div>
			</div>
			<div class="hr-line-dashed"></div>
			
			<div class="form-group">
				<label for="namebasic" class="col-md-2 control-label">${_res["emailMessage.sendObject"]}：</label>
				<div class="col-md-8">
					<#dict type="lable" value="${emailMessage.sendobject!}" table="customer_role" filedName="name" filedValue="id" />
				</div>
			</div>
			<div class="hr-line-dashed"></div>			

			<div class="form-group">
				<label for="namebasic" class="col-md-2 control-label">${_res["emailMessage.sendTime"]}：</label>
				<div class="col-md-3">
					<p class="form-control-static">${emailMessage.sendtime!,dateFormat="yyyy-MM-dd HH:mm"}：</p>
				</div>

				<label class="col-sm-2 control-label">${_res["emailMessage.status"]}：</label>
				<div class="col-sm-3">
					<#dict type="select" dictCode="SEND_STATUS" value="${emailMessage.status!}" disabled="disabled" />
				</div>
			</div>
			<div class="hr-line-dashed"></div>

			<% if(attachmentlist.~size>0) { %>
				<div class="form-group">
					<div class="row">
						<div class="col-md-10 m-l-xl">
							<label class="btn btn-info btn-sm">${_res["emailMessage.attachments"]}</label>
						</div>
					</div>
					<div class="row m-t-md">
						<div id="uploadproimgfiles" class="col-md-10 m-l-xl">
							<% for(item in attachmentlist!){ %>
								<div class="bg-success p-l-md p-r-md disIB bordeRadius4px m-l-sm m-r-sm">${item.originalfilename!}</div> 						
							<% } %>					
						</div>
					</div>
				</div>
				<div class="hr-line-dashed"></div>
			<% } %>	
			
			<label class=" control-label">${_res["emailMessage.emailContent"]}<span class="fontColorRed">&nbsp;*</span></label>
			<script id="container" name="emailMessage.content" type="text/plain" style="width:100%; min-height:500px !important">
				${emailMessage.content!}
			</script>
			<div class="hr-line-dashed"></div>

			<div class="form-group">
				<div class="row">
					<div class="col-md-10 col-md-offset-2">
						<button type="button" class="btn btn-warning" onClick="ajaxContent('/message/emailMessage/list')">${_res["system.return"]}</button>
					</div>
				</div>
			</div>
		</form>
	</div>
</div>
<#nav />

<script>
		/*加载富文本输入框*/
		var editor = new UE.ui.Editor();  
	    editor.render("container");
	    //判断ueditor 编辑器是否创建成功
        editor.addListener("ready", function () {
	    	// editor准备好之后才可以使用
        	editor.setDisabled();
        });
</script>